﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Vboot.App
{
    public class MsgHelper
    {
        public class ErrorsItem
        {
            /// <summary>
            /// 
            /// </summary>
            public string FieldName { get; set; }

            public string Message { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int DIndex { get; set; }
        }
        public class SuccessEntitysItem
        {
            /// <summary>
            /// 
            /// </summary>
            public int Id { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string Number { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int DIndex { get; set; }
        }

        public class ResponseStatus
        {
            /// <summary>
            /// 
            /// </summary>
            public int ErrorCode { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string IsSuccess { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public List<ErrorsItem> Errors { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public List<SuccessEntitysItem> SuccessEntitys { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public List<string> SuccessMessages { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int MsgCode { get; set; }
        }
        public class FPriceListEntryItem
        {
            /// <summary>
            /// 
            /// </summary>
            public int FEntryID { get; set; }
        }
        public class NeedReturnDataItem
        {
            /// <summary>
            /// 
            /// </summary>
            public int FID { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public List<FPriceListEntryItem> FPriceListEntry { get; set; }
        }
        public class Result
        {
            /// <summary>
            /// 
            /// </summary>
            public ResponseStatus ResponseStatus { get; set; }
            public int Id { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string Number { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public List<NeedReturnDataItem> NeedReturnData { get; set; }
        }

        public class Root
        {
            /// <summary>
            /// 
            /// </summary>
            public Result Result { get; set; }
        }
    }
}
